<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form_importText">
			<input id="configGroupId" name="configGroupId" type="hidden" th:value="${configGroupId}"   />
			<div class="form-group">
				<label class="col-sm-3 control-label">内容：</label>
				<div class="col-sm-8">
					<textarea class="form-control" rows="20" name="text" id="text"></textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">yaml导入</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/groupPropertyImport";
		$("#form_importText").validate({
			rules:{
				paramJson:{
                    required:true
				}
			},
			submitHandler: function(form) {
                var data = $(form).serialize();
                console.log(data);
                $.operate.save(prefix + "/importText", data);

			}
		});
	</script>
</body>
</html>
